package com.gxa.meiye.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.meiye.core.pojo.domain.Coupon;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 优惠卷 Mapper 接口
 * </p>
 *
 * @author zy
 * @since 2022-07-24
 */
public interface CouponMapper extends BaseMapper<Coupon> {
    //查询优惠卷
    List<Coupon> selcet(String phone);
    //兑换优惠卷
    Integer update(@Param("max") Integer max, @Param("phone") String phone, @Param("title") String title);
    //查询选中的优惠卷
    Integer selectConupon(@Param("phone") String phone, @Param("title") String title);
}
